package com.mtl.article.mapper;

import com.mtl.article.domain.Article;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.additional.idlist.IdListMapper;
import tk.mybatis.mapper.common.BaseMapper;
import java.util.List;

/**
 * 文章管理 Mapper 接口
 *
 * @author lsc
 * @since 2019-08-09
 */
@Repository
public interface ArticleMapper  extends BaseMapper<Article>, IdListMapper<Article,Integer>{
    List<Article> selectBySortid(@Param("id") Integer id);
    List<Article> selectByCondition(@Param("searchKey") String searchKey);
    List<Article> selectByImg();
    Integer count();
    List<Article> selectOrder(@Param("order") String order,@Param("sort") String sort,@Param("img") Boolean img,@Param("sortid") Integer sortid);
}
